from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks

table_recognition = pipeline(Tasks.table_recognition, model='/media/songzhijun/AI1/cv_dla34_table-structure-recognition_cycle-centernet')
result = table_recognition('/home/songzhijun/图片/2.jpg')
print(result)


